<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>vue-birthday-input demo</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.6.0/css/bulma.min.css">
    <style>
      [v-cloak] {
        display: none;
      }
    </style>
  </head>
  <body>
    <div id="app" v-cloak>
      <section class="hero is-primary is-bold">
        <div class="hero-body">
          <div class="container">
            <h1 class="title">
              Vue Birthday Input
            </h1>
            <h2 class="subtitle">
              Vuejs 生日输入控件
            </h2>
          </div>
        </div>
      </section>
      <div class="section container">
        <div class="columns is-multiline is-mobile">
          <div class="column is-12 has-text-centered">
            <p class="control">
              <label class="label"> Value: {{ dob }} </label>
              <vue-birthday-input
                class="input is-large"
                v-model="dob"
              >
              </vue-birthday-input>
            </p>
          </div>
        </div>
        <hr>
      </div>
      <br>
      <footer class="footer">
        <div class="container">
          <div class="content has-text-centered">
            <p>
              <strong>Vue Birthday Input</strong> by Xank. The source code is licensed
              <a href="http://opensource.org/licenses/mit-license.php">MIT</a>
            </p>
            <p>
              <a href="https://www.npmjs.com/package/vue-birthday-input" target="_blank">
                <img src="https://img.shields.io/npm/v/vue-birthday-input.svg">
                <img src="https://img.shields.io/npm/dt/vue-birthday-input.svg">
                <img src="https://img.shields.io/npm/dm/vue-birthday-input.svg">
                <img src="https://img.shields.io/npm/l/vue-birthday-input.svg">
              </a>
            </p>
            <p>
              <a href="https://github.com/xanke/vue-birthday-input" target="_blank">
                <img src="https://img.shields.io/github/stars/xanke/vue-birthday-input.svg?style=social&label=Star">
                <img src="https://img.shields.io/github/forks/xanke/vue-birthday-input.svg?style=social&label=Fork">
              </a>
            </p>
          </div>
        </div>
      </footer>
    </div>
    <script src="https://unpkg.com/moment"></script>
    <script src="https://unpkg.com/vue"></script>
    <script src="https://unpkg.com/vue-birthday-input"></script>
    <script>
      Vue.use(VueBirthdayInput.default)
      new Vue({
        el: '#app',
        data:  {
          dob: ''
        }
      })
    </script>
  </body>
</html>